package ts;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

public class TestMap {

	public static void main(String[] args) {

//		System.out.println(System.getenv("AAA"));
		
		LongModel l = new LongModel();
		l.setL(9223372036854775807l);
		
		JSONObject obj1 = new JSONObject();
		obj1.put("test", l);
		String ll = JSON.toJSONString(obj1);
		System.out.println(ll);
		
		JSONObject obj = JSONObject.parseObject(ll);
		System.out.println(obj.get("l"));
		
		LongModel ls = JSONObject.parseObject(ll,LongModel.class);
		System.out.println(ls.getL());
	}

}
